package com.ruoyi.project.cms.task.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

public class Assignment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private int id;
    private String title;

    @JSONField(format = "yyyy-MM-dd")
    private Date newDate;
    @JSONField(format = "yyyy-MM-dd")
    private Date endDate;
    private int astatus;
    private int urgency;
    private String content;
    private String file;
    @JSONField(format = "yyyy-MM-dd")
    private Date startDate;
    private String user_name;
    private String dept_name;
    private int dept_id;
    private int pid;
    private int uid;

    public Assignment() {
    }

    public Assignment(int id, String title, Date newDate, Date endDate, int astatus, int urgency, String content, String file, Date startDate, String user_name, String dept_name, int dept_id, int pid, int uid) {
        this.id = id;
        this.title = title;
        this.newDate = newDate;
        this.endDate = endDate;
        this.astatus = astatus;
        this.urgency = urgency;
        this.content = content;
        this.file = file;
        this.startDate = startDate;
        this.user_name = user_name;
        this.dept_name = dept_name;
        this.dept_id = dept_id;
        this.pid = pid;
        this.uid = uid;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getNewDate() {
        return newDate;
    }

    public void setNewDate(Date newDate) {
        this.newDate = newDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public int getAstatus() {
        return astatus;
    }

    public void setAstatus(int astatus) {
        this.astatus = astatus;
    }

    public int getUrgency() {
        return urgency;
    }

    public void setUrgency(int urgency) {
        this.urgency = urgency;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public int getDept_id() {
        return dept_id;
    }

    public void setDept_id(int dept_id) {
        this.dept_id = dept_id;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Assignment{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", newDate=" + newDate +
                ", endDate=" + endDate +
                ", astatus=" + astatus +
                ", urgency=" + urgency +
                ", content='" + content + '\'' +
                ", file='" + file + '\'' +
                ", startDate=" + startDate +
                ", user_name='" + user_name + '\'' +
                ", dept_name='" + dept_name + '\'' +
                ", dept_id=" + dept_id +
                ", pid=" + pid +
                ", uid=" + uid +
                '}';
    }
}
